package com.udian.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.ApiOperation;


@RestController
@RequestMapping("/user")
public class HelloController {
	
	
    @ApiOperation(value="创建用户", notes="根据User对象创建用户")
    //@ApiImplicitParam(name = "info", value = "用户详细实体user", required = true, dataType = "String")
	@RequestMapping("/say")
	String say(String info) {
		return "response " + info;
    }
	
	
	/*@Autowired
	private UserService userService;*/
	
	
	
	/*@RequestMapping("/get")
    User get(Long userId) {
		
		return userService.getUser(userId);
    }
	
	
	@RequestMapping("/add")
    User add(User user) {
		return userService.addUser(user);
    }
	
	@RequestMapping("/update")
    User update(User user) {
		return userService.updateUser(user);
    }*/
	
}
